<template>
  <div class="movie">
    <div class="movie-list">
      <MovieList />
    </div>
  </div>
</template>

<script>
import MovieList from '@/components/movieList.vue'
export default {
  name: 'Movie',
  components: {
    MovieList,
  },
}
</script>

<style lang="less" scoped>
@font-face {
  font-family: 'iconfont';
  src: url('//at.alicdn.com/t/font_2728644_t5d1dybha0h.woff2?t=1635131867882')
      format('woff2'),
    url('//at.alicdn.com/t/font_2728644_t5d1dybha0h.woff?t=1635131867882')
      format('woff'),
    url('//at.alicdn.com/t/font_2728644_t5d1dybha0h.ttf?t=1635131867882')
      format('truetype');
}

.iconfont {
  font-family: 'iconfont' !important;
  font-size: 22px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.movie {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.movie-nav {
  border-bottom: solid 1px #eee;
  display: flex;
  height: 88px;
  font-weight: bold;
  font-size: 16px;

  li:first-child {
    width: 200px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #666;
    padding-left: 30px;
  }

  li:nth-child(2) {
    flex: 1;
    display: flex;
    justify-content: space-around;

    span {
      display: block;
      line-height: 88px;

      &.active {
        color: #cd4c42;
        padding: 0 20px;
        border-bottom: solid 2px #cd4c42;
      }
    }
  }

  li:last-child {
    margin-left: 112px;
    width: 88px;
    border-left: solid 2px #eee;
    text-align: center;
    line-height: 50px;
    color: #cd4c42;
    font-size: 52px;
  }
}

.movie-list {
  flex: 1;
  overflow: auto;
}
</style>
